#include <my_head.h>
int main(int argc, const char *argv[]){
    printf("------star------\n");
    pid_t pid = 0;
    if(-1 == (pid = fork())){
        ERR_LOG("fork error");
    }else if (0<pid)
    {
        printf("这是父进程\n");
    }else if(0 == pid){
        printf("这是子进程\n");
    }
    printf("------end------\n");
//父子进程执行没有先后顺序
    return 0;
}